Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove cargo test workspace command #1048

Merged
merged 3 commits into from
Jul 9, 2024
Merged

docs: remove cargo test workspace command #1048

merged 3 commits into from
Jul 9, 2024

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Jul 9, 2024

What's Changed in this PR

Describe the change in this PR

Related to GreptimeTeam/greptimedb#4324

Checklist

  • Please confirm that all corresponding versions of the documents have been revised.
  • Please ensure that the content in summary.yml matches the current document structure when you changed the document structure.
  • This change requires follow-up update in localized docs.

Summary by CodeRabbit

  • Documentation
    • Updated test documentation to recommend using cargo nextest run for running Rust unit tests, improving test execution speed.

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia waynexia requested review from nicecui and a team as code owners July 9, 2024 11:38
Copy link
Contributor

coderabbitai bot commented Jul 9, 2024

Walkthrough

The recent update focuses on modifying the command used to run unit tests in Rust within the GreptimeDB codebase. The old command cargo test --workspace has been replaced with cargo nextest run. This change is recommended due to nextest's faster execution and better support compared to the default cargo test runner.

Changes

Files Path Change Summary
docs/.../en/contributor-guide/tests/unit-test.md Updated the unit test command to use cargo nextest run instead of cargo test --workspace.
docs/.../zh/contributor-guide/tests/unit-test.md Updated the unit test command to use cargo nextest run instead of cargo test --workspace.

Poem

In fields of code, where tests do bloom,
We switched commands, less time consumed.
From cargo test to nextest we glide,
With swift precision, on faster tides.
GreptimeDB now speeds along,
Together we debug, our code grows strong.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (2)
docs/v0.8/en/contributor-guide/tests/unit-test.md (1)

6-6: Typographical correction.

"The default test runner ships with cargo is a bit slow" should be corrected to "The default test runner that ships with cargo is a bit slow".

- The default test runner ships with `cargo` is a bit slow
+ The default test runner that ships with `cargo` is a bit slow
docs/nightly/en/contributor-guide/tests/unit-test.md (1)

10-11: Typographical correction.

"The default test runner ships with cargo is not supported in our codebase" should be corrected to "The default test runner that ships with cargo is not supported in our codebase".

- The default test runner ships with `cargo` is not supported in our codebase
+ The default test runner that ships with `cargo` is not supported in our codebase
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b26af97 and f017719.

Files selected for processing (8)
  • docs/nightly/en/contributor-guide/getting-started.md (1 hunks)
  • docs/nightly/en/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/nightly/zh/contributor-guide/getting-started.md (1 hunks)
  • docs/nightly/zh/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/v0.8/en/contributor-guide/getting-started.md (1 hunks)
  • docs/v0.8/en/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/v0.8/zh/contributor-guide/getting-started.md (1 hunks)
  • docs/v0.8/zh/contributor-guide/tests/unit-test.md (1 hunks)
Files skipped from review due to trivial changes (3)
  • docs/nightly/en/contributor-guide/getting-started.md
  • docs/nightly/zh/contributor-guide/getting-started.md
  • docs/v0.8/en/contributor-guide/getting-started.md
Additional comments not posted (10)
docs/nightly/zh/contributor-guide/tests/unit-test.md (2)

6-6: Clarify the necessity of --workspace with cargo nextest run.

The statement "Since GreptimeDB orchestrates its components in the 'workspace' manner, the tailing --workspace is necessary to run all the unit cases." is conflicting with the subsequent statement that --workspace is not necessary with cargo nextest run. Please clarify this.


6-6: Ensure translation consistency.

Ensure that the translation accurately reflects the intent of the original English documentation. For example, "The default test runner ships with cargo is a bit slow" should be correctly translated to convey the same meaning in Chinese.

docs/v0.8/en/contributor-guide/tests/unit-test.md (1)

6-6: Clarify the necessity of --workspace with cargo nextest run.

The statement "Since GreptimeDB orchestrates its components in the 'workspace' manner, the tailing --workspace is necessary to run all the unit cases." is conflicting with the subsequent statement that --workspace is not necessary with cargo nextest run. Please clarify this.

docs/nightly/en/contributor-guide/tests/unit-test.md (1)

6-6: Clarify the necessity of --workspace with cargo nextest run.

The statement "Since GreptimeDB orchestrates its components in the 'workspace' manner, the tailing --workspace is necessary to run all the unit cases." is conflicting with the subsequent statement that --workspace is not necessary with cargo nextest run. Please clarify this.

docs/v0.8/zh/contributor-guide/tests/unit-test.md (2)

6-6: Clarify the necessity of --workspace with cargo nextest run.

The statement "Since GreptimeDB orchestrates its components in the 'workspace' manner, the tailing --workspace is necessary to run all the unit cases." is conflicting with the subsequent statement that --workspace is not necessary with cargo nextest run. Please clarify this.


6-6: Ensure translation consistency.

Ensure that the translation accurately reflects the intent of the original English documentation. For example, "The default test runner ships with cargo is not supported in our codebase" should be correctly translated to convey the same meaning in Chinese.

docs/v0.8/zh/contributor-guide/getting-started.md (4)

46-47: Introduction of nextest is clear and accurate.

The introduction of the nextest tool for running unit tests is clear and provides adequate context.


48-55: Installation instructions for nextest are accurate and complete.

The instructions for installing nextest using cargo and alternative methods are correct and provide sufficient details for users to follow.


56-59: Instructions for running the test suite with nextest are clear and correct.

The command to run the test suite using nextest is accurate and the instruction is clear.


46-59: The changes maintain the logical flow and consistency of the document.

The document remains cohesive and the changes do not disrupt the overall structure.

Copy link

cloudflare-workers-and-pages bot commented Jul 9, 2024

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 31a96ec
Status: ✅  Deploy successful!
Preview URL: https://ba545168.greptime-docs.pages.dev
Branch Preview URL: https://update-test-doc.greptime-docs.pages.dev

View logs

Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the docs that mention --workspace.

docs/nightly/en/contributor-guide/tests/unit-test.md Outdated Show resolved Hide resolved
docs/nightly/zh/contributor-guide/tests/unit-test.md Outdated Show resolved Hide resolved
docs/v0.8/en/contributor-guide/tests/unit-test.md Outdated Show resolved Hide resolved
docs/v0.8/zh/contributor-guide/tests/unit-test.md Outdated Show resolved Hide resolved
Co-authored-by: Yingwen <realevenyag@gmail.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (2)
docs/nightly/zh/contributor-guide/tests/unit-test.md (1)

9-9: Consider using "accelerate" instead of "speed up".

To strengthen the wording, consider using "accelerate" the test procedure.

- to speed up the test procedure.
+ to accelerate the test procedure.
Tools
LanguageTool

[style] ~9-~9: Consider using a different verb to strengthen your wording.
Context: ...o use nextest to speed up the test procedure. You can install it ...

(SPEED_UP_ACCELERATE)

docs/v0.8/en/contributor-guide/tests/unit-test.md (1)

9-9: Consider using "accelerate" instead of "speed up".

To strengthen the wording, consider using "accelerate" the test procedure.

- to speed up the test procedure.
+ to accelerate the test procedure.
Tools
LanguageTool

[style] ~9-~9: Consider using a different verb to strengthen your wording.
Context: ...o use nextest to speed up the test procedure. You can install it ...

(SPEED_UP_ACCELERATE)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f017719 and 303189a.

Files selected for processing (4)
  • docs/nightly/en/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/nightly/zh/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/v0.8/en/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/v0.8/zh/contributor-guide/tests/unit-test.md (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • docs/nightly/en/contributor-guide/tests/unit-test.md
  • docs/v0.8/zh/contributor-guide/tests/unit-test.md
Additional context used
LanguageTool
docs/nightly/zh/contributor-guide/tests/unit-test.md

[style] ~9-~9: Consider using a different verb to strengthen your wording.
Context: ...o use nextest to speed up the test procedure. You can install it ...

(SPEED_UP_ACCELERATE)

docs/v0.8/en/contributor-guide/tests/unit-test.md

[style] ~9-~9: Consider using a different verb to strengthen your wording.
Context: ...o use nextest to speed up the test procedure. You can install it ...

(SPEED_UP_ACCELERATE)

Additional comments not posted (2)
docs/nightly/zh/contributor-guide/tests/unit-test.md (1)

6-6: LGTM! Accurate update to the test command.

The change from cargo test --workspace to cargo nextest run is correctly reflected.

docs/v0.8/en/contributor-guide/tests/unit-test.md (1)

6-6: LGTM! Accurate update to the test command.

The change from cargo test --workspace to cargo nextest run is correctly reflected.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (1)
docs/nightly/en/contributor-guide/tests/unit-test.md (1)

8-8: Add missing article "the".

The sentence is missing the article "the" before "GreptimeDB codebase".

- The default test runner ships with `cargo` is not supported in GreptimeDB codebase. It's recommended
+ The default test runner ships with `cargo` is not supported in the GreptimeDB codebase. It's recommended
Tools
LanguageTool

[uncategorized] ~8-~8: You might be missing the article “the” here.
Context: ... ships with cargo is not supported in GreptimeDB codebase. It's recommended to use [`nex...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 303189a and 31a96ec.

Files selected for processing (4)
  • docs/nightly/en/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/nightly/zh/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/v0.8/en/contributor-guide/tests/unit-test.md (1 hunks)
  • docs/v0.8/zh/contributor-guide/tests/unit-test.md (1 hunks)
Files skipped from review as they are similar to previous changes (3)
  • docs/nightly/zh/contributor-guide/tests/unit-test.md
  • docs/v0.8/en/contributor-guide/tests/unit-test.md
  • docs/v0.8/zh/contributor-guide/tests/unit-test.md
Additional context used
LanguageTool
docs/nightly/en/contributor-guide/tests/unit-test.md

[uncategorized] ~8-~8: You might be missing the article “the” here.
Context: ... ships with cargo is not supported in GreptimeDB codebase. It's recommended to use [`nex...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

Additional comments not posted (3)
docs/nightly/en/contributor-guide/tests/unit-test.md (3)

6-6: LGTM!

The update to use cargo nextest run is correct and aligns with the objective of updating the test command.


9-9: LGTM!

The recommendation to use nextest and the link to its documentation are correct and useful.


Line range hint 12-13:
LGTM!

The instructions on running tests with cargo nextest run and the notes about installation issues are correct and useful.

Tools
LanguageTool

[uncategorized] ~8-~8: You might be missing the article “the” here.
Context: ... ships with cargo is not supported in GreptimeDB codebase. It's recommended to use [`nex...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

@nicecui nicecui merged commit 6115840 into main Jul 9, 2024
5 checks passed
@nicecui nicecui deleted the update-test-doc branch July 9, 2024 14:23
killme2008 pushed a commit that referenced this pull request Jul 22, 2024
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Yiran <cuiyiran3@gmail.com>
Co-authored-by: Yingwen <realevenyag@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants